package 设计模式.观察者模式.订阅者们;

/**
 * @description:
 * @author: 小白白
 * @create: 2021-10-10
 **/

public class XiaowangListener implements EventListener{

    private String name = "小王";

    @Override
    public void doEvent(String result) {
        System.out.println(name+"收到"+result);
    }

}
